<?php echo $header; ?>
<?php if ($breadcrumbs) { ?>
<div class="breadcrumb">
  <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  <?php } ?>
</div>
<?php }  ?>
<?php if (isset($install) && $install) { ?>
<div class="warning"><?php echo $error_install; ?></div>
<?php } ?>
<?php if ($success) { ?>
<div class="success"><?php echo $success; ?></div>
<?php } ?>
<div class="box">
  <div class="content">
    <div class="module">      
      <div class="main">
      	  <div class="group">
            <div class="title"><?php echo $text_system; ?></div>
            <a onclick="window.open('<?php echo $office; ?>');">
                <div class="icon_main" id="icon_main_1" onmouseover="ChangeStyleIcon('icon_main_1',1)" onmouseout="ChangeStyleIcon('icon_main_1',2)">
                    <img src="view/image/home-icon.png" border="0" />
                    <div class="text_icon_main"><?php echo $text_front; ?></div>
                </div>
            </a>
            <a href="<?php echo $setting; ?>">
                <div class="icon_main" id="icon_main_2" onmouseover="ChangeStyleIcon('icon_main_2',1)" onmouseout="ChangeStyleIcon('icon_main_2',2)">
                    <img src="view/image/system-icon.png" border="0" />
                    <div class="text_icon_main"><?php echo $text_setting; ?></div>
                </div>
            </a>
            <a href="<?php echo $module; ?>">
                 <div class="icon_main" id="icon_main_3" onmouseover="ChangeStyleIcon('icon_main_3',1)" onmouseout="ChangeStyleIcon('icon_main_3',2)">
                 <img src="view/image/module-icon.png" border="0" />
                 <div class="text_icon_main"><?php echo $text_module; ?></div>
                 </div>
            </a>
            <a href="<?php echo $user; ?>">
            	<div id="icon_main_4" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_4',1)" onmouseout="ChangeStyleIcon('icon_main_4',2)">               
                     <img src="view/image/admin-icon.png" border="0" />
                     <div class="text_icon_main"><?php echo $text_users; ?></div>
            	</div>
            </a> 
            <!--<a href="<?php echo $contact; ?>">         
                <div id="icon_main_6" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_6',1)" onmouseout="ChangeStyleIcon('icon_main_6',2)">
                    <img src="view/image/mail-icon.png" border="0" />
                    <div class="text_icon_main"><?php echo $text_contact; ?></div>
                </div>
            </a>-->
            <a href="<?php echo $language; ?>">
                <div id="icon_main_7" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_7',1)" onmouseout="ChangeStyleIcon('icon_main_7',2)">
                   <img src="view/image/language-icon.png" border="0" />
                   <div class="text_icon_main"><?php echo $text_language; ?></div>
                </div>
            </a>
            <a href="<?php echo $backup; ?>">
                <div id="icon_main_8" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_8',1)" onmouseout="ChangeStyleIcon('icon_main_8',2)">
                   <img src="view/image/backup-restore-icon.png" border="0" />
                   <div class="text_icon_main"><?php echo $text_backup; ?></div>
                </div>
            </a>
            <a href="<?php echo $error_log; ?>">
                <div id="icon_main_9" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_9',1)" onmouseout="ChangeStyleIcon('icon_main_9',2)">
                   <img src="view/image/history_clear-icon.png" border="0" />
                   <div class="text_icon_main"><?php echo $text_error_log; ?></div>
                </div>
            </a>
            <a href="<?php echo $layout; ?>">
                <div id="icon_main_19" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_19',1)" onmouseout="ChangeStyleIcon('icon_main_19',2)">
                   <img src="view/image/layout_icon.jpg" height="48px;" border="0" />
                   <div class="text_icon_main"><?php echo $text_layout; ?></div>
                </div>
            </a>        
         </div>
         
         <!--  Module  -->
         <?php if($extensions) {  $i=40; ?>        
         <div class="group">
         	<div class="title"><?php echo $text_module; ?></div>
             <?php foreach($extensions as $module) {
        		 $i++; ?>
                <a href="<?php echo $module['href']; ?>">
                     <div id="icon_main_<?php echo $i; ?>" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_<?php echo $i; ?>',1)" onmouseout="ChangeStyleIcon('icon_main_<?php echo $i; ?>',2)">
                       <img src="view/image/product-icon.png" border="0" />
                       <div class="text_icon_main"><?php echo $module['name']; ?></div>
                    </div>
                </a>            
            <?php } ?>
         </div>
         <?php } ?>
         <!--  End Module  -->
         
         <!--  Data  -->
         <div class="group">
         	<div class="title"><?php echo $text_data; ?></div>
         	<a href="<?php echo $categories; ?>">
                 <div id="icon_main_10" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_10',1)" onmouseout="ChangeStyleIcon('icon_main_10',2)">
                   <img src="view/image/icon_category_main.png" border="0" />
                   <div class="text_icon_main"><?php echo $text_categories; ?></div>
                </div>
            </a>  
            
            <a href="<?php echo $menu; ?>">
                 <div id="icon_main_11" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_11',1)" onmouseout="ChangeStyleIcon('icon_main_11',2)">
                   <img width="48px" height="48px" src="view/image/menu.jpg" border="0" />
                   <div class="text_icon_main"><?php echo $text_menu; ?></div>
                </div>
            </a>            
            <a href="<?php echo $news; ?>">
                 <div id="icon_main_12" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_12',1)" onmouseout="ChangeStyleIcon('icon_main_12',2)">
                   <img width="48px" height="48px" src="view/image/news.jpg" border="0" />
                   <div class="text_icon_main"><?php echo $text_news; ?></div>
                </div>
            </a>      
             <a href="<?php echo $online; ?>">
                 <div id="icon_main_13" class="icon_main" onmouseover="ChangeStyleIcon('icon_main_13',1)" onmouseout="ChangeStyleIcon('icon_main_13',2)">
                   <img width="48px" height="48px" src="view/image/news.jpg" border="0" />
                   <div class="text_icon_main"><?php echo $text_online; ?></div>
                </div>
            </a>      
         </div>
         
         <!--  End data  -->
      </div>
    </div>
  </div>
</div>
<?php echo $footer; ?>